const setting = {
	namespaced: true,
	state: () => ({
		themeColor: sessionStorage.getItem("THEME_COLOR") ? sessionStorage.getItem("THEME_COLOR") :
			'#225efa',
		themeBgColor: sessionStorage.getItem("THEME_BG_COLOR") ? sessionStorage.getItem("THEME_BG_COLOR") :
			'rgba(34, 94, 250, 0.1)',
		elevatorNumber: sessionStorage.getItem("elevatorNumber") ? sessionStorage.getItem("elevatorNumber") : '0000084151000004'
		
	}),
	mutations: {
		SET_THEMECOLOR(state, color) {
			state.themeColor = color
			sessionStorage.setItem("THEME_COLOR", color)
			// console.log(color, 'setThemeColor---color')
		},
		SET_THEMEBGCOLOR(state, color) {
			state.themeBgColor = color
			sessionStorage.setItem("THEME_BG_COLOR", color)
			// console.log(color, 'setThemeColor---color')
		},
		SET_ELEVATORNUMBER(state, status) {
			state.elevatorNumber = status;
			// console.log(status,'默认直梯ID')
			sessionStorage.setItem("elevatorNumber ", status) 
		}
	},
	getters: {},
	actions: {}
}
export default setting